<?php
/**
 * Copyright (c) 2012, xxworkshop Inc.
 * All rights reserved.
 *
 * Created by BrocheXu on 2014.11.6
 */
// require_once 'wxhandler/wxhandler.class.php';
require_once 'wxhandler/wxhandler.class.php';
require_once 'mydistributor.php';

define('APPID', 'wx0d9c8462e968b071');
define('APPSECRET', '276974431af977b0be6fa5871023c94c');
define('TOKEN', '360cbs');
define('AESKEY', '0o7BE3TqF5IIKz7CaHV7VQN005yoMZVrzpAmfUJeTqA');

function debug($msg) {
	error_log(time().': '.$msg."\r\n",3,'debug.log');
}

//debug($_SERVER["REQUEST_URI"]);



$handler = new WXHandler(APPID ,AESKEY, TOKEN);
$handler->setDistributor(new MyDistributor());
$handler->run();

?>